//
//  ECButton.h
//  ERPChargeAccount2
//
//  Created by 刘思麟 on 2018/6/17.
//  Copyright © 2018年 历山大亚. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, ECButonState) {
    ECButonStateDefalt,
    ECButonStateunRead,
};

typedef NS_ENUM(NSUInteger, ECButonImageLocation) {
    ECButonImageLocationLeft,
    ECButonImageLocationTop,
    ECButonImageLocationRight
};

/**
 自定义按钮 tip：文字和图片的相对布局
 */
@interface ECButton : UIButton

@property (nonatomic,assign) ECButonState btState;

@property (nonatomic,assign) ECButonImageLocation imgLocation;

@property (nonatomic,assign) CGFloat splitBetweenImgAndTitle;

@end
